import request from '@/utils/request'

export default {

  getInfo(data) {
    return request({
      url: '/web/auth/info',// 分类列表
      method: 'get',
      params: data
    })
  },

  getConsumlist(data) {
    return request({
      url: '/web/index/consumlist',// 购买通知
      method: 'get',
      params: data
    })
  },


  loginByScanWeixin(data) {
    return request({
      url: '/web/auth/loginByScanWeixin',// 客户微信登录 
      method: 'post',
      data
    })
  },

  login(data) {
    return request({
      url: '/web/auth/login',// 客户登录 
      method: 'post',
      data
    })
  },


  logout(data) {
    return request({
      url: '/web/auth/logout',// 客户登出 
      method: 'post',
      data
    })
  },

  classType(data) {
    return request({
      url: '/websouremate/classif/list',// 分类列表
      method: 'get',
      params: data
    })
  },
  getList(data) {
    return request({
      url: '/websouremate/details/list',// 详情列表
      method: 'get',
      params: data
    })
  },

  getDetailst(data) {
    return request({
      url: '/websouremate/details/details',  // 详情列表
      method: 'get',
      data
    })
  },

  captcha(data) {
    return request({
      url: '/web/auth/captcha',// 公共验证码 
      method: 'post',
      data
    })
  },

  regCaptcha(data) {
    return request({
      url: '/web/auth/regCaptcha',// 注册手机验证码 
      method: 'post',
      data
    })
  },



  register(data) {
    return request({
      url: '/web/auth/register',// 注册 
      method: 'post',
      data
    })
  },

  loginbymobile(data) {
    return request({
      url: '/web/auth/loginbymobile',// 手机登录注册 
      method: 'post',
      data
    })
  },
  zfbpayList(data) {
    return request({
      url: '/web/pay/zfbpayList',// 支付宝支付通道
      method: 'post',
      data
    })
  },

  //@parame data{’messageType’:’订单类型 1余额充值 2购买素材’,’pirce’:’金额’,’numbers’:’数量’,’goodsid’:’商品id’,’payType’:’支付类型wx/zfb’,’configId’:’支付通道ID’}
  generateOrder(data) {
    return request({
      url: '/web/pay/generateOrder',// 生成订单
      method: 'post',
      data
    })
  },


  //@parame data{’ordersn’:’’}
  createNative(data) {
    return request({
      url: '/web/pay/createNative',// 创建扫码支付
      method: 'post',
      data
    })
  },

  queryByOrderSn(data) {
    return request({
      url: '/web/pay/queryByOrderSn',// 充值状态查询
      method: 'post',
      data
    })
  },

  moneyApply(data) {
    return request({
      url: '/web/playithdraw/apply', //用户银行卡申请提现！
      method: 'post',
      data
    })
  },
  moneyApplyAli(data) {
    return request({
      url: '/web/playithdraw/applyali', //用户支付宝申请提现！
      method: 'post',
      data
    })
  },

  withdrawList(data) {
    return request({
      url: '/web/playithdraw/list',// 提现记录
      method: 'get',
      params: data
    })
  },
  realCreate(data) {
    return request({
      url: '/web/realprove/create',// 创建实名
      method: 'post',
      data
    })
  },

  realUpdate(data) {
    return request({
      url: '/web/realprove/update',// 修改实名信息
      method: 'post',
      data
    })
  },
  realUpdatealie(data) {
    return request({
      url: '/web/realprove/updateali',// 修改实名信息支付宝账号提现
      method: 'post',
      data
    })
  },
  realproves(data) {
    return request({
      url: '/web/realprove/realproves',// 获取实名信息详情
      method: 'get',
      params: data
    })
  },


  positiveCardOrc(data) {
    return request({
      url: '/web/realprove/positiveCardOrc',// 身份证识别
      method: 'post',
      data
    })
  },
  uploadPath: process.env.BASE_API + '/web/realprove/positiveCardOrc',


  baomingcreate(data) {
    return request({
      url: '/web/storage/baomingcreate',// 对象存储
      method: 'post',
      data
    })
  },


  province(data) {
    return request({
      url: '/web/region/clist',//省
      method: 'get',
      params: data
    })
  },

  city(data) {
    return request({
      url: '/web/region/list',//市
      method: 'get',
      params: data
    })
  },

  shopList(data) {
    return request({
      url: '/ybgweb/show/shopList',//店铺列表
      method: 'get',
      params: data
    })
  },


  shopScanList(data) {
    return request({
      url: '/ybgweb/show/shopScanList',//易宝阁-游戏搜索列表
      method: 'get',
      params: data
    })
  },

  gamedetails(data) {//开服信息
    return request({
      url: '/ybgweb/show/gamedetails',
      method: 'get',
      params: data
    })
  },

  adlist(data) {
    return request({
      url: '/versionlib/versioncontent/adlist',//广告banner
      method: 'get',
      params: data
    })
  },



  orderList(data) {
    return request({
      url: '/web/isorderSele/list',//订单查询
      method: 'get',
      params: data
    })
  },

  orderDetails(data) {
    return request({
      url: '/web/isorderSele/details',//订单详情查询
      method: 'get',
      params: data
    })
  },
  consumlist(data) {
    return request({
      url: '/web/isorderSele/consumlist',//账单查询
      method: 'get',
      params: data
    })
  },




  currencyCaptcha(data) {
    return request({
      url: '/web/auth/currencyCaptcha',// 通用获取短信验证码
      method: 'post',
      data
    })
  },

  currencyCheckCaptcha(data) {
    return request({
      url: '/web/auth/currencyCheckCaptcha',// 通用校验短信验证码和手机是否正确
      method: 'post',
      data
    })
  },


  unbindingPhone(data) {
    return request({
      url: '/web/auth/unbindingPhone',// 解绑手机号
      method: 'post',
      data
    })
  }








}


// const uploadPath = process.env.VUE_APP_BASE_API + '/admin/storage/create'
// export { uploadPath }




